package com.xayy.health.mgt.model.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;
/**
 * @author zhangxa
 */
@NoArgsConstructor
@Data
public class SlopeAlgorithmParseDTO {

    @JsonProperty("gradient")
    private Double gradient;


    @JsonProperty("name")
    private String name;

    @ApiModelProperty(value = "斜率用-异常参数时间索引")
    private String timeIndex;

    @ApiModelProperty(value = "斜率用-异常参数时间")
    private String time;

    private List<ValueDTO> value;

    @NoArgsConstructor
    @Data
    public static class ValueDTO {

        @JsonProperty("x")
        private String x;

        @JsonProperty("y")
        private Double y;
    }
}
